package com.example.service.impl;

import com.example.dao.HostDao;
import com.example.entity.Host;
import com.example.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AdminImpl implements AdminService {
    @Autowired
    private HostDao hostDao;

    @Override
    public List<Host> hostListByUserId() {
        return hostDao.hostListByUserId();
    }
}
